<?php
/*由bean脚本生成 powerBy--joe*/
namespace app\common\enum;

class StoreUserStatusEnum extends BaseEnumAbtract
{

    const NORMAL = 1;
    const BAN = 2;

    public static function getName($type){
        $type = intval($type);
        $arrayName = self::getArrayName();
        return isset($arrayName[$type]) ? $arrayName[$type] : '状态出错';
    }

    public static function getArrayName(){
        return [
            self::NORMAL => '启用',
            self::BAN => '禁用'
        ];
    }
}